<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Link
 *
 * @author Tan Loi
 */
class Link {
    private $_link ="";
    public function __construct($link)
    {
        $this->_link = $link; 
    }
    public function getLink()
    {
        if($this->_link=="")
            $this->_link="#";
            elseif ($this->_link!="#" && substr_compare($this->_link,'http',0)<0)
                $this->_link=$baseUrl.'/'.$this->_link ;
            return $this->_link;
    }
    
}

?>
